/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2020 ARM Ltd.
 */
#ifndef ASM_UTILS_PROCESSOR_H
#define ASM_UTILS_PROCESSOR_H

#ifndef __ASSEMBLY__

static inline void cpu_relax(void)
{
	asm volatile("yield" ::: "memory");
}

static inline unsigned long arch_align_stack(unsigned long sp)
{
    return sp & ~0xf;
}

#endif /* __ASSEMBLY__ */

#endif /* !ASM_UTILS_PROCESSOR_H */
